/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package navidemo;

import GUI.Gridbag;
import GUI.Register;
import GUI.login;
import GUI.Registerold;
import ProgramUtils.Systemtasks;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.swing.JOptionPane;

/**
 *
 * @author Tesla
 */
public class NaviDemo {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws SQLException {
        //Declaration
        ResultSet rs;
        login obj = new login();
        Systemtasks task = new Systemtasks();
        System.out.println(task.isInternetReachable());
        
        if (task.isInternetReachable())
        {
        obj.runGUI();
        }
        else
        {
        JOptionPane.showMessageDialog(null, "No internet connection present please connect to the internet");
        System.exit(0);
        }
              

        
        
    }
}
